package com.wanxi.test;

import java.util.Scanner;

public class Max {
    public static void main(String[] args) {
        /**
         * 思路？
         */
        int a = getNum("请输入第一个整数");
        int b = getNum("请输入第二个整数");
        int max = maxNum(a, b);
        System.out.println("最大值为：" + max);
    }

    public String aa() {
        return "String";
//        System.out.println(111);
    }

    private static int maxNum(int a, int b) {
        return a > b ? a : b;
    }

    private static int getNum(String tips) {
        Scanner scanner = new Scanner(System.in);
        System.out.println(tips);
        int num = scanner.nextInt();
        return num;
    }
}
